package com.vito.oa.act.extend.model;

import com.vito.act.model.BpmnProcess;
import com.vito.act.model.BpmnUserTask;

/**
 * OA自定义流程实体类
 * @author yc
 *BPMN生成简单流程
 *主要属性信息
 */
public class OaBpmnProcess extends BpmnProcess {
	private static final long serialVersionUID = 1895395330461389776L;
	public OaBpmnProcess(String processKey,String processName){
			super(processKey, processName);
	}
	
	public static void main(String[] args) {
		BpmnProcess bpmnProcess = new OaBpmnProcess("testaaa", "测试自动生成流程");
		BpmnUserTask task = new BpmnUserTask("第一");
		task.setId("usr_161129155612BlyWHww7");
		bpmnProcess.addUserTask(task);
		task = new BpmnUserTask("第二");
		task.setId("usr_1611291556129aWTiVwO");
		System.out.println(bpmnProcess.addUserTask(task).endTask().createModel());
	}
}
